import axios from "axios";

//获取家服公司信息
export const getcompanys = () => {
  return axios({
    method: "get",
    url: "http://192.168.15.57:3001/firm"
    // "http://192.168.15.71:3001/companys"
  });
};
//保存家服公司信息
export const postcompanys = data => {
  return axios({
    method: "post",
    url: "http://192.168.15.57:3001/firm",
    data
    // "http://192.168.15.71:3001/companys"
  });
};

//获取家服人员信息
export const getpeople = () => {
  return axios({
    method: "get",
    url: "http://192.168.15.57:3001/users"
    // " http://192.168.15.71:3001/people"
  });
};
//保存员工信息
export const postpeople = data => {
  return axios({
    method: "post",
    url: "http://192.168.15.57:3001/users",
    data
    // " http://192.168.15.71:3001/people"
  });
};

//获取岗位
export const getjob = () => {
  return axios({
    method: "get",
    url: "http://192.168.15.57:3001/business"
  });
};

export const getUserProfile = () => {
  return axios({});
};

export const postapply = data => {
  return axios({
    url: "http://192.168.15.57:3001/apply",
    method: "post",
    data
  });
};
export const getapply = data => {
  return axios({
    url: "http://192.168.15.57:3001/apply",
    method: "get",
    data
  });
};
